<template>
    <RouterView />
<van-tabbar v-model="active">
  <van-tabbar-item name="home" icon="home-o" @click="home">首页</van-tabbar-item>
  <van-tabbar-item name="search" icon="search" @click="about">爆爆团</van-tabbar-item>
  <van-tabbar-item name="friends" icon="friends-o">订单</van-tabbar-item>
  <van-tabbar-item name="setting" icon="setting-o">我的</van-tabbar-item>
</van-tabbar>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from "vue-router";
var $router=useRouter()
var home=()=>{
  $router.push('/Shouye/home')
}
var about=()=>{
  $router.push('/Shouye/about')
}
    const active = ref('home');

</script>

<style>

</style>